<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<% String path = request.getContextPath(); 
   String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>logon</title>
<link rel="stylesheet" type="text/css" media="screen" href="<%=basePath %>sks/css/frontpages/mytestcss.css" />
  <SCRIPT LANGUAGE="JavaScript">
	function clearWarnMessage(){
		var div = document.getElementById("warnMessage");
		div.innerHTML="";
	}
  
	function checkForm(){
		var form = document.forms[1];
		var div = document.getElementById("warnMessage");
		var nameValue = form.loginName ? form.loginName.value :null;
		if(!nameValue){
			//alert("请输入账号");
			div.innerHTML = "请输入账号" ;
			return false;
		}
		if(nameValue && nameValue.length<5){
			//alert("账号小于6位，请重新输入");
			div.innerHTML = "账号小于5位，请重新输入" ;
			return false; 
		}
		var psdValue = form.loginPwd ? form.loginPwd.value:null;
		if(!psdValue){
			//alert("请输入密码");
			div.innerHTML = "请输入密码";
			return false;
		}
		if(psdValue && psdValue.length<6){
			//alert("密码小于6位，请重新输入");
			div.innerHTML = "密码小于6位，请重新输入";
			return false;
		}
		return true;
	}
  
  </SCRIPT>
<style type="text/css">
 
.STYLE1 {color: #666666}
.logintitle H2 {
	DISPLAY: block; FONT-WEIGHT: bold; FONT-SIZE: 14px; MARGIN: 0px 0px 0px 0px;PADDING:0 0 0 10px;color:#525252
}
.ablue2{
	FONT-SIZE: 14px; color:#0066FF
}
 
</style>
</head>

<body>
	<div class="wrap" height="100%" style="background-image:url(/images/login/xxxlogin_bg.jpg);">
		<jsp:include page="../header.jsp"></jsp:include>
		<div>
			<div>
				<a href="<%=basePath%>" hidefocus="true">SKS房地产</a>&nbsp;&gt;&nbsp;登录
			</div>		
			<div class="clear"></div>
		</div>
		<div class="content-wrap-logon" style="height:250px;">
			<form name= "loginform" action="/sks/privilege/users/logon.do" method="post"
				onsubmit="javascript:return checkForm()" >
				<input type="hidden" name="directUrl" value="${param.directUrl}" />
				<table width="760" border="0"  cellpadding="0" cellspacing="0" align="center">
					<tr>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td >
						<table width="80%" border="0" align="left" cellpadding="10" cellspacing="0" >
								<tr>
									<td>
										<table width="95%" border="0" align="right" cellpadding="0"
											cellspacing="0">
											<tr>
												<td align="right" class="c5"><strong>账号：</strong></td>
												<td><input class="keySearch" style="width:200px;" name="loginName" id="loginName"
													type="text" size="20" maxlength="20" onkeydown="clearWarnMessage();"value="${param.loginName}"/></td>
												<!--  
												<td><div id="loginNameWarn" style="margin:5px 10px 5px 0;float: left; color: red"></div><div style="clear: left;"></div></td>
												-->
											</tr>
											<tr>
												<td colspan="3" align="right" height="15"></td>
											</tr>
											<tr>
												<td align="right" class="c5"><strong>密码：</strong></td>
												<td><input name="loginPwd" class="keySearch" style="width:200px;" type="password" size="20"
													maxLength="16" onkeydown="clearWarnMessage();"></td>
												<td align="left">
												<!--  
												<a href="/user/findpassword.do" class="ablue" target="_blank">忘记密码了？</a></td>
												-->
												&nbsp;<a href="/sks/privilege/users/post.do?method=getpassword" class="ablue" target="_blank">忘记密码了？</a></td>
											</tr>
											<tr>
												<td>&nbsp;</td>
												<td>
													<div id="warnMessage" style="left:150px;position:relative;font-size:13px;float: left; color: red">
													<c:if test="${!empty message}">
													${message }
													</c:if>
													</div>
												</td>
											</tr>
											<tr>
												<td colspan="3" align="right" height="15"></td>
											</tr>
											<tr>
												<td></td>
												<!-- <td width="10%" align="right">&nbsp;</td> -->
												<td width="8%" align="left" valign="middle">
												    <div style="margin-left: 5px;"><button type="submit">登&nbsp;&nbsp; 录</button></div>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
			</form>
		</div>
		<jsp:include page="../rooster.jsp"></jsp:include><%--尾部--%>
	</div>




</body>
</html>